package top.kaoshanji.ch02;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import javax.swing.*;

/**
 * 代码清单 ch02-04：HelloJava第四个版本
 * @see HelloComponent2
 * author kaoshanji
 * ^_^
 * create time 2024/11/16 11:18
 */
public class HelloJava4 {

    private static final Logger logger = LogManager.getLogger(HelloJava4.class);

    public static void main(String[] args) {
        logger.info("...代码清单 ch02-04：HelloJava第四个版本...");

        JFrame frame = new JFrame("HelloJava4");
        frame.add(new HelloComponent2("Hello, Java!"));
        frame.setSize(300, 300);
        frame.setVisible(true);

    }

}
